/**
 * 权限管理-权限模块申请套件
 */
export const privilegeTemplateChildren = [
    {
        label: '原因描述',
        formId: 'changeReason',
        key: 'changeReason',
        tag: 'TextArea',
        rules: [
            {
                required: true,
                message: '请输入'
            }
        ],
        options: {
            placeholder: '请输入',
            disabled: true,
            maxLength: 4000
        }
    },
    {
        label: '模板名称',
        formId: 'nameZh',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: true,
        inFormAuth: false,
        inRenderDom: false
    },
    {
        label: '操作类型',
        formId: 'operationType',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: true,
        inFormAuth: false,
        inRenderDom: false
    },
    {
        label: '申请成功跳转',
        formId: 'applySuccessUrl',
        tag: 'Input',
        rules: [],
        options: {
            initialValue: '/setting/privilege/templatemanagement',
            disabled: true
        },
        inFormAuth: false,
        inRenderDom: false
    }
];

export const privilegeTemplateControl = {
    label: '权限模板',
    cmpType: 'custom',
    formId: '',
    key: 'PrivilegeTemplateApply',
    tag: 'PrivilegeTemplateApply',
    formStyle: true,
    children: privilegeTemplateChildren,
    proCondition: true,
    isUsed: false
};
